/*
 * ModelCC, distributed under ModelCC Shared Software License, www.modelcc.org
 */

package org.modelcc.language.factory;

import java.io.Serializable;

import org.modelcc.language.syntax.RuleSymbol;
import org.modelcc.language.syntax.Symbol;

/**
 * List content.
 * 
 * @author Luis Quesada (lquesada@modelcc.org), refactored by Fernando Berzal (berzal@modelcc.org)
 */
public class ListContent implements Serializable 
{    
    private Object[] content;
    private Symbol symbol;
    private RuleSymbol ruleSymbol;

    public ListContent (Object[] content, Symbol symbol, RuleSymbol ruleSymbol) {
    	this.content = content;
    	this.symbol = symbol;
    	this.ruleSymbol = ruleSymbol;
    }

    public ListContent(Object[] content) {
    	this.content = content;
    }
    
    public Object[] getContent() {
    	return content;
    }
    
    public Symbol getSymbol() {
    	return symbol;
    }

    public RuleSymbol getRuleSymbol() {
    	return ruleSymbol;
    }
}